package com.voicechat.firstmet.net;


import java.util.HashMap;

/**
 * Created by WuNan-QF on 16/3/9.
 * 请求参数工具类,存放一些常用的参数,方便复用
 */
public class Params extends HashMap<String, Object> {
    public Params(){

    }
    /*public Params(String urlStr) {
        putURL(urlStr);
    }*/

    @Override
    public Object put(String key, Object value) {
        if (null == value) {
            value = "";
        }
        return super.put(key, value);
    }

    public void putCusNumber(String cusNumber) {
        this.put("cusNumber", cusNumber);
    }

   /* public void putMobile(String mobile) {
        this.put("mobile", CodeUtil.encodeRSA(mobile));
    }

    public void putPassword(String password) {
        this.put("passWord", CodeUtil.encodeRSA(CodeUtil.encodeMD5(password)));
    }

    public void putURL(String url) {
        this.put("url", CodeUtil.encodeRSA(url));
    }

    public void putChannel() {
        this.put("channel", Constants.CHANNEL);
    }

    public void putAppVersion() {
        this.put("versionNo", Constants.APP_VERSION);
    }*/

    public void putVersion(String version) {
        this.put("ver", version);
    }
}
